//
// Created by maqz on 2018/4/2.
// Copyright (c) 2018 毛毛驴. All rights reserved.
//

#import "LKBoTongFeedbackBaseWebViewController.h"

typedef NS_ENUM(NSInteger, LKBoTongFeedbackWebViewNaviType) {
    LKBoTongFeedbackWebViewNaviTypeNormal = 0,
    LKBoTongFeedbackWebViewNaviTypeBlue
};

/**
    Web view controller
 */
@interface LKBoTongFeedbackWebViewController : LKBoTongFeedbackBaseWebViewController

extern NSString *scriptCallbackMethod;
extern NSString *scriptMethodName;
extern NSString *scriptParams;

extern NSString *BotongApplicationCenterShareJSHandler;
extern NSString *BotongApplicationCenterNormalJSHandler;

extern NSString *PassportId;

@property (copy, nonatomic, readonly)NSDictionary *navigationBarTitleTextAttributes;
@property (assign, nonatomic, readonly)BOOL navigationBarTranslucent;
@property (strong, nonatomic, readonly)UIImage *navigationBarShadowImage;
@property (strong, nonatomic, readonly)UIImageView *navigationBarLine;
@property (assign, nonatomic, readonly)BOOL navigationBarLineIsHidden;
@property (assign, nonatomic, readonly)UIStatusBarStyle statusBarStyle;
@property (assign, nonatomic)LKBoTongFeedbackWebViewNaviType naviType;

/**
 把web 返回的 json 字符串转成字典数组
 
 @param jsonString json 字符串
 @return 部门信息字典（包括：deptInfo 数组，totalCount 总人数）
 */
- (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;

/**
 根据组织架构返回的数据对原来选中的联系人进行过滤和添加
 
 @param selectedIds 组织架构对原来已选中的联系人编辑（取消选中）后剩下的
 @param origSelectedArray H5 返回的已选中的联系人
 @param supplementArray 组织架构新增的联系人
 @param filterKey 根据这个字段进行过滤
 @return 最终合并后的所有联系人
 */
- (NSArray *)filterContacts:(NSArray *)selectedIds origSelectedArray:(NSArray *)origSelectedArray supplementArray:(NSArray *)supplementArray filterKey:(NSString *)filterKey;

@end
